package com.hjy.elasticsearch.service;

import com.hjy.elasticsearch.entity.ESEntity;
import com.hjy.elasticsearch.entity.Entity;
import io.searchbox.core.Index;

import java.util.List;

public interface CityESService {

    Index saveEntity(Entity entity);

    void saveEntity(List<Entity> entityList);

    List searchEntity(String index, String searchContent,String tableName);
    /**
     * 两列查询
     * @param index
     * @param index2
     * @param searchContent
     * @return
     */
    public Object searchTwo(String index,String index2,String searchContent);
    /**
     * 多列查询
     * @param searchContent
     * @param index
     * @return
     */
    public Object searchmore(int pageNumber,int pageSize,String searchContent,String ... index);
}
